# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=libewf
pkgver=20240506
pkgrel=0
pkgdesc="Library to support the Expert Witness Compression Format"
url="https://libewf.sourceforge.net/"
arch="all"
license="LGPL-2.0-or-later"
depends_dev="zlib-dev bzip2-dev openssl-dev>3"
makedepends="$depends_dev fuse-dev"
subpackages="$pkgname-dev libewf-libs $pkgname-doc"
source="https://github.com/libyal/libewf/releases/download/$pkgver/libewf-experimental-$pkgver.tar.gz"

build() {
	# fix build on gcc6
	# export CFLAGS="$CFLAGS -std=gnu89"
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--disable-nls \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
373207c2795b820374dd2071145345966e65bc31d2f0679f1ecb759cea2b7e0802935c66e8bec9dd6e76c944e1ba4a616ed2de216cdad78934855d2355ae08bd  libewf-experimental-20240506.tar.gz
"
